<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page errorPage="disposeError.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>报错页面</title>
</head>
<body>

<%
//保存单价到request对象范围内的变量price里面
request.setAttribute("price","12.5元");

//获取单价price的值并转换为float类型(非数值型转换为float型报错)
float prices=Float.parseFloat(request.getAttribute("price").toString());
%>

<%=prices %>

</body>
</html>